const fs=require('fs')
const fileName='gldb.json'
const data=require('./'+fileName)
data.locks.forEach(lock=>lock.is400AF=false)
// 写入文件
fs.writeFile(fileName, JSON.stringify(data,null,2), "utf8", (err) => {
    if (err) {
      console.error("写入文件时出错:", err);
    } else {
      console.log("数据已成功写入文件:", fileName);
    }
  });